export default [
  { type: 'index', width: 60 },
  { type: 'selection', width: 60 },
  { prop: 'enterpriseName', label: '企业名称' },
  { prop: 'area', label: '所属地区' },
  { prop: 'phone', label: '联系方式' },
  { prop: 'scale', label: '佣金' },
  { prop: 'isuse', label: '状态', formatter: function(row, colum) {
    return row.isuse === 0 ? '启用' : '禁用'
  } },
  { prop: 'createtime', label: '创建时间' },
  { type: 'handle', width: '200', buttons: [
    { text: '详情', type: 'info' },
    { text: '启用', type: 'success', isShow: function(row, rowIndex) { return row.isuse === -1 } },
    { text: '禁用', type: 'danger', isShow: function(row, rowIndex) { return row.isuse === 0 } }

  ]
  }
]

